import React from 'react'
import store from './store'
import CGI from './cgi'
import { Provider } from 'react-redux'
export default function App(props) {
    return (
        <Provider>
            <div onClick={() => {
                //发布通知
                store.dispatch({
                    type: 'add',
                    count: 1
                })
                //js 跳转路由 props.history.push('') 
            }}>
                <div>使用redux</div>
                <CGI />
            </div>
        </Provider>
    )
}
